﻿using System.Collections.Generic;

namespace DoubanFM.Model
{
    public class ChannelGroupSearch
    {
        public string SearchUrl { get; set; }
        public string GroupTitle { get; set; }
        public string GroupDescription { get; set; }

        public ChannelGroupSearch(string searchUrl, string groupTitle, string groupDescription)
        {
            SearchUrl = searchUrl;
            GroupTitle = groupTitle;
            GroupDescription = groupDescription;
        }

        public static List<ChannelGroupSearch> PredefinedList(int start, int fetchLimit)
        {
            var list = new List<ChannelGroupSearch>
                           {
                               new ChannelGroupSearch(
                                   "http://douban.fm/j/explore/hot_channels?start=" + start + "&limit=" + fetchLimit,
                                   "\u70ED\u95E8\u5146\u8D6B", "\u70ED\u95E8\u5146\u8D6B"),
                               new ChannelGroupSearch(
                                   "http://douban.fm/j/explore/up_trending_channels?start=" + start + "&limit=" + fetchLimit,
                                   "\u4E0A\u5347\u6700\u5FEB", "\u4E0A\u5347\u6700\u5FEB")
                           };
            return list;
        }
    }
}
